package operation;

import book.Book;
import book.BookList;

public class ExitOperation implements Ioperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("退出系统....");
        int currentsize= bookList.getUseSize();
        for(int i=0;i<currentsize;i++){
            bookList.setbook(i,null);
        }
        System.exit(0);
    }
}
